package pl.spikes;

import pl.spikes.xmpp.XMPPJoinGameActivity;
import pl.spikes.xmpp.XMPPLogic;
import pl.spikes.xmpp.XMPPLoginActivity;
import pl.spikes.xmpp.XMPPPrepareGameActivity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class HomePage extends Activity implements OnClickListener {

	public void onCreate(Bundle savedInstanceState) {
	     super.onCreate(savedInstanceState);
	     setContentView(R.layout.homepage);
	     
	     View asynctask_spike_button = this.findViewById(R.id.asynctask_spike);
	     View xmpp_json_spike_button = this.findViewById(R.id.xmpp_json_spike);
	     asynctask_spike_button.setOnClickListener(this);
	     xmpp_json_spike_button.setOnClickListener(this);
	}
	@Override
	public void onClick(View view) {
		switch(view.getId()){
		case R.id.asynctask_spike:
			Intent asynctask_spike_intent = new Intent(this, AsynctaskSpikeActivity.class);
			startActivity(asynctask_spike_intent);
			break;
		case R.id.xmpp_json_spike:
			Intent xmpp_json_spike_intent = new Intent(this, XMPPLoginActivity.class);
			startActivity(xmpp_json_spike_intent);
			break;
		
		}
		
	}
	

}
